<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!-- 响应式导航 -->
<div class="container">
	<nav class="navbar navbar-default" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#example-navbar-collapse">
					<span class="sr-only">切换导航</span> <span class="icon-bar"></span> <span
						class="icon-bar"></span> <span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">图书列表</a>
			</div>
			<div class="collapse navbar-collapse" id="example-navbar-collapse">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><span class="text-info">${user.username}</span></a></li>
					
					<c:if test="${user==null}">
						<li><a href="${path}/user/loginView">登录</a></li>
					</c:if>
					
					<li><a href="#">注册</a></li>
					<li><a href="#">新增book</a></li>
					<li><a href="#">删除book</a></li>
					
					<c:if test="${user!=null}">
						<li><a href="${path}/user/safeExit">安全退出</a></li>
					</c:if>

				</ul>
			</div>
		</div>
	</nav>
</div>